package com.qww.exec11;

public class Detergent {
    private Cleanser x = new Cleanser();

    public void append(String a) { x.append(a); }

    public void dilute() { x.dilute(); }

    public void apply() { x.apply(); }

    public void scrub() {
        x.append("Detergent.scrub() ");
        x.scrub();
    }

    public void foam() {
        x.append("foam() ");
    }

    public String toString() {
        return x.toString();
    }

    public static void main(String[] args) {
        Detergent x = new Detergent();
        x.dilute();
        x.apply();
        x.scrub();
        x.foam();
        System.out.println(x);
        System.out.println("Testing base class: ");
        Cleanser.main(args);
    }
}
